package com.itheima.ExtendsDemo;

public   class JiDuQuan  extends Dog implements JiDu {
        @Override
       public void jiDu(){
            System.out.println("缉毒");
        }
        @Override
       public void eat(){
//子类继承父类方法权限要大于等于父类
            System.out.println("吃军用狗粮");
        }
        @Override
       public void roar(){
            System.out.println("有毒品，汪汪汪");
        }
      /* public static void play(){
           System.out.println("实现类静态");
        }*/

    public static void main(String[] args) {
        JiDu.play();
        JiDuQuan jdq=new JiDuQuan();
        jdq.eat();
        jdq.roar();
    }

}
